
import 'package:dio/dio.dart';

import 'fm_http_exception.dart';

class FMHttpInterceptorError extends InterceptorsWrapper {
  @override
  void onError(DioError err, ErrorInterceptorHandler handler) {
    FMHttpException httpException = FMHttpException(err.response?.statusCode,err.message);
    err.error = httpException;

    super.onError(err, handler);
  }
}